home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / gas-211 / gas / config / tc-m68k.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  2.4 KB  |  75 lines

  1. /* This file is tc-m68k.h
  2.  
  3.    Copyright (C) 1987-1992 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GAS, the GNU Assembler.
  6.  
  7.    GAS is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 2, or (at your option)
  10.    any later version.
  11.  
  12.    GAS is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.    GNU General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with GAS; see the file COPYING.  If not, write to
  19.    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #define TC_M68K 1
  22.  
  23. #ifdef OBJ_AOUT
  24. #define TARGET_FORMAT "a.out-sunos-big"
  25. #endif
  26.  
  27. #define COFF_MAGIC MC68MAGIC
  28. #define BFD_ARCH bfd_arch_m68k
  29. #define COFF_FLAGS F_AR32W
  30. #define TC_COUNT_RELOC(x) ((x)->fx_addsy||(x)->fx_subsy)
  31.  
  32. #define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)
  33. #define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
  34. #ifdef TE_SUN3
  35. /* This variable contains the value to write out at the beginning of
  36.    the a.out file.  The 2<<16 means that this is a 68020 file instead
  37.    of an old-style 68000 file */
  38.  
  39. #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (2<<16|OMAGIC);    /* Magic byte for file header */
  40. #endif /* TE_SUN3 */
  41.  
  42. #ifndef AOUT_MACHTYPE
  43. #define AOUT_MACHTYPE 0x2
  44. #endif
  45.  
  46. #define tc_crawl_symbol_chain(a)    {;}    /* not used */
  47. #define tc_headers_hook(a)        {;}    /* not used */
  48. #define tc_aout_pre_write_hook(x)    {;}    /* not used */
  49.  
  50. #define LISTING_WORD_SIZE 2    /* A word is 2 bytes */
  51. #define LISTING_LHS_WIDTH 2    /* One word on the first line */
  52. #define LISTING_LHS_WIDTH_SECOND 2    /* One word on the second line */
  53. #define LISTING_LHS_CONT_LINES 4/* And 4 lines max */
  54. #define LISTING_HEADER "68K GAS "
  55.  
  56. /* Copied from write.c */
  57. #define M68K_AIM_KLUDGE(aim, this_state,this_type) \
  58.     if (aim==0 && this_state== 4) { /* hard encoded from tc-m68k.c */ \
  59.                     aim=this_type->rlx_forward+1; /* Force relaxation into word mode */ \
  60.                     }
  61.  
  62. #ifdef M68KCOFF
  63. #define DOT_LABEL_PREFIX
  64. #define REGISTER_PREFIX '%'
  65. #else
  66. #define OPTIONAL_REGISTER_PREFIX '%'
  67. #endif
  68.  
  69. #ifdef BFD_ASSEMBLER
  70. #define tc_frob_symbol(sym,punt) \
  71.     if (S_GET_SEGMENT (sym) == reg_section) punt = 1
  72. #endif
  73.  
  74. /* end of tc-m68k.h */
  75.